package com.carrot.mq.mqserver.core;

/**
 * @author 兴趣使然黄小黄
 * @version 1.0
 * @date 2023/7/31 18:55
 * 交换机的类型
 */
public enum ExchangeType {

    DIRECT(0),
    FANOUT(1),
    TOPIC(2);

    private final int type;

    private ExchangeType(int type) {
        this.type = type;
    }

    public int getType() {
        return type;
    }
}
